package type;

//import javafx.application.Application;
import dao.Animal;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * Hello world!
 *
 */
public class App 
{
    public static void main( String[] args )
    {
       /* Simulator simulator = new Simulator();
        simulator.Playsound(new dog());
        simulator.Playsound(new Cat());*/
        ApplicationContext context =new ClassPathXmlApplicationContext("Sound.xml");
        Simulator simulator =context.getBean("simulator",Simulator.class);
        Animal animal =simulator.getType();
        animal.cry();


    }
}
